package WrittenExamination;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Scanner;

public class daytwo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s1 = sc.nextLine();
        String [] str = s1.split(" ");
        StringBuffer stringBuffer = new StringBuffer();
        for (int i = str.length-1; i >= 0 ; i--) {
            stringBuffer.append(str[i]+" ");
        }
        stringBuffer.deleteCharAt(stringBuffer.length()-1);
        System.out.println(stringBuffer.toString());
    }
}
